package com.liuhm.bfs;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 顶点
 *
 * @author liuhaomin
 * @date 2020/12/28
 */
@Data
public class Vertex implements Serializable {
    private static final long serialVersionUID = 4543479112604840512L;

    public Vertex(String key, String value) {
        this.key = key;
        this.value = value;
        this.parents = new ArrayList<>();
        this.children = new ArrayList<>();
    }


    /** 键 */
    private String key;
    /** 值 */
    private String value;

    private List<Vertex> parents;
    private List<Vertex> children;

}
